<template>
  <div class="main-aside">
    <el-aside width="220px">
      <el-menu
        :default-active="$route.path"
        class="el-menu-vertical-demo"
        text-color="#37383C"
        unique-opened
        router
        active-text-color="#5d9aff"
      >
        <el-submenu index="1">
          <template slot="title">
            <i class="el-icon-location"></i>
            <span>商品管理</span>
          </template>
          <el-menu-item index="/goodslist">商品列表</el-menu-item>
          <el-menu-item index="/goodsadd">新增商品</el-menu-item>
          <el-menu-item index="1-2">商品分类</el-menu-item>
          <el-menu-item index="1-2">品牌管理</el-menu-item>
        </el-submenu>
      </el-menu>
    </el-aside>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  computed: {},
  created() {},
  mounted() {},
  methods: {},
}
</script>

<style scoped lang="scss">
.main-aside {
  background: #fff;
  padding-left: 20px;
  float: left;
  position: sticky;
  top: 80px;
  margin-right: 20px;
  .el-menu {
    height: 100%;
    background-color: #eee !important;
  }
  .el-aside {
    background: #fff;
    height: calc(100vh - 100px);
    overflow-y: auto;
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: column;
    outline: none;
    overflow: hidden;
    .iconfont {
      margin-right: 16px;
      color: #37383c;
    }
  }
}
.pusb-course {
  width: 200px;
  height: 38px;
  background: #4e70f2;
  border-radius: 2px;
  color: #fff;
  margin: 30px 0 20px;
  display: block;
}
</style>
